GetParentTaskName

Syntax:

GetParentTaskName()

Description:
Returns the name of the task that launched the current task.  The function returns a blank string if the task was not started by another task.

Parameter Description

(no parameters)

Example:

Sub Main
' Display the name of the parent task
strParentTask = GetParentTaskName()
if (strParentTask == "")
MsgBox "Not started by another task"
else
MshBox "Task was started by " & strParentTask
End
Sub

See Also:

GetTaskName